import Service from '../utils/request'
import type {ICoure} from '../constrain/interface'
class courseApi extends Service{
	getcourseData(params:ICoure){
			const {page,limit} = params
			return this.get({url:`/api/edu/course/${page}/${limit}`})
	}

	getcoursemessage(id:number){
		return this.get({url:`/api/edu/course/${id}`})
	}

	getcoursecomment(params:number){
		const {page,limit} = params
		return this.get({url:`/api/edu/comment/${page}/${limit}`})
	}
}

export default new courseApi()